<template xmlns:v-slot="http://www.w3.org/1999/XSL/Transform">
    <div>
        <a-form-model :model="newFormData" :label-col="auditLabelCol" :wrapper-col="auditWrapperCol">

            <a-tabs default-active-key="1">
                <a-tab-pane key="1" tab="基本信息">
                    <a-row>
                        <a-col :span="6">
                            <a-form-model-item label="姓名" >
                                <a-input  v-model="newFormData.fullName"/>
                            </a-form-model-item>
                        </a-col>

                        <a-col :span="6">
                            <a-form-model-item label="证件类型" >
                                <a-select 
                                          placeholder="请选择"
                                          allowClear
                                          v-model="newFormData.cardType"
                                >
                                    <a-select-option v-for="item in dictData.cardType" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="身份证">
                                <a-input  v-model="newFormData.idcard"/>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="性别">
                                <a-select 
                                          placeholder="请选择"
                                          allowClear
                                          v-model="newFormData.sex"
                                >
                                    <a-select-option v-for="item in dictData.sex" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="出生日期">
                                <a-date-picker 
                                               format="YYYYMMDD"
                                               v-model="newFormData.birthday"
                                               placeholder="请输入出生日期"
                                />
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="电子邮箱">
                                <a-input  v-model="newFormData.email"/>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="手机号码">
                                <a-input  v-model="newFormData.cellphone"/>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="国家">
                                <a-select show-search option-filter-prop="children"
                                          placeholder="请选择"
                                          allowClear
                                          v-model="newFormData.country"
                                >
                                    <a-select-option v-for="item in dictData.country" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>

                        <a-col :span="6">
                            <a-form-model-item label="常住地地址">
                                <a-input  v-model="newFormData.addressDetail"/>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="统筹区">
                                <a-select show-search option-filter-prop="children"
                                          placeholder="请选择"
                                          allowClear
                                          v-model="newFormData.areaCode"
                                >
                                    <a-select-option v-for="item in dictData.areaCode" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="证件有效期开始">
                                <a-date-picker
                                        format="YYYYMMDD"
                                        v-model="newFormData.cardDateStart"
                                />
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="证件有效期结束">
                                <a-date-picker
                                        format="YYYYMMDD"
                                        v-model="newFormData.cardDateEnd"
                                />
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="专长">
                                <a-input  v-model="newFormData.expertise"/>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="宗教信仰">
                                <a-select
                                          placeholder="请选择"
                                          allowClear
                                          v-model="newFormData.faith"
                                >
                                    <a-select-option v-for="item in dictData.faith" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="健康状况">
                                <a-select
                                        placeholder="请选择"
                                        allowClear
                                        v-model="newFormData.healthType"
                                >
                                    <a-select-option v-for="item in dictData.healthType" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="户籍地址">
                                <a-input  v-model="newFormData.householdDetail"/>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="婚姻状态">
                                <a-select
                                        placeholder="请选择"
                                        allowClear
                                        v-model="newFormData.marriageStatus"
                                >
                                    <a-select-option v-for="item in dictData.marriageStatus" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="民族">
                                <a-select
                                        placeholder="请选择"
                                        allowClear
                                        v-model="newFormData.nation"
                                >
                                    <a-select-option v-for="item in dictData.nation" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="籍贯">
                                <a-input  v-model="newFormData.nativePlace"/>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="政治面貌">
                                <a-select
                                        placeholder="请选择"
                                        allowClear
                                        v-model="newFormData.politicalInfo"
                                >
                                    <a-select-option v-for="item in dictData.politicalInfo" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="人员状态">
                                <a-select
                                        placeholder="请选择"
                                        allowClear
                                        v-model="newFormData.personStatus"
                                >
                                    <a-select-option v-for="item in dictData.personStatus" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="人员类型">
                                <a-select
                                        placeholder="请选择"
                                        allowClear
                                        v-model="newFormData.personType"
                                >
                                    <a-select-option v-for="item in dictData.personType" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="联系电话">
                                <a-input  v-model="newFormData.phone"/>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="户口性质">
                                <a-select
                                        placeholder="请选择"
                                        allowClear
                                        v-model="newFormData.residenceType"
                                >
                                    <a-select-option v-for="item in dictData.residenceType" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="参加工作时间">
                                <a-date-picker
                                        format="YYYYMMDD"
                                        v-model="newFormData.workedTime"
                                />
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="工作单位名称">
                                <a-input  v-model="newFormData.orgName"/>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="职务">
                                <a-input  v-model="newFormData.jobPost"/>
                            </a-form-model-item>
                        </a-col>
                    </a-row>
                </a-tab-pane>
                <a-tab-pane key="2" tab="人才信息">
                    <a-row>
                        <a-col :span="6">
                            <a-form-model-item label="省统一人才类别" >
                                <a-select
                                        placeholder="请选择"
                                        allowClear
                                        v-model="newFormData.talentType"
                                >
                                    <a-select-option v-for="item in dictData.talentType" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>

                        <a-col :span="6">
                            <a-form-model-item label="省人才等级" >
                                <a-select
                                        placeholder="请选择"
                                        allowClear
                                        v-model="newFormData.talentLevel"
                                >
                                    <a-select-option v-for="item in dictData.talentLevel" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="本地人才类别">
                                <a-select
                                        placeholder="请选择"
                                        allowClear
                                        v-model="newFormData.localType"
                                >
                                    <a-select-option v-for="item in dictData.localType" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="本地人才等级">
                                <a-select
                                        placeholder="请选择"
                                        allowClear
                                        v-model="newFormData.localLevel"
                                >
                                    <a-select-option v-for="item in dictData.talentLevel" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="所属学科">
                                <a-select
                                        placeholder="请选择"
                                        allowClear
                                        v-model="newFormData.subject"
                                >
                                    <a-select-option v-for="item in dictData.subject" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="研究领域">
                                <a-input  v-model="newFormData.researchField"/>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="人才类别">
                                <a-input  v-model="newFormData.talentCategory"/>
                            </a-form-model-item>
                        </a-col>
                        <a-col :span="6">
                            <a-form-model-item label="人才层级">
                                <a-select
                                        placeholder="请选择"
                                        allowClear
                                        v-model="newFormData.talentRank"
                                >
                                    <a-select-option v-for="item in dictData.talentRank" :key="item.dictKey"
                                                     :value="item.dictKey">{{ item.dictValue}}
                                    </a-select-option>
                                </a-select>
                            </a-form-model-item>
                        </a-col>
                    </a-row>
                </a-tab-pane>
                <a-tab-pane key="3" tab="教育经历">
                    <vxe-toolbar>
                        <template v-slot:buttons>
                            <vxe-button @click="insertEvent3">新增</vxe-button>
                            <vxe-button @click="$refs.xGrid3.removeCheckboxRow()">删除</vxe-button>
                        </template>
                    </vxe-toolbar>
                    <vxe-grid
                            class="vxe-table-antd"
                            resizable
                            show-overflow
                            ref="xGrid3"
                            stripe
                            border
                            highlight-hover-row
                            highlight-current-row
                            highlight-hover-column
                            highlight-current-column
                            highlight-cell
                            height="400"
                            :columns="tableColumn3"
                            :data="tableData3"
                            :edit-config="{trigger: 'click', mode: 'cell'}">

                    </vxe-grid>
                </a-tab-pane>
                <a-tab-pane key="4" tab="工作经历">
                    <vxe-toolbar>
                        <template v-slot:buttons>
                            <vxe-button @click="insertEvent4">新增</vxe-button>
                            <vxe-button @click="$refs.xGrid4.removeCheckboxRow()">删除</vxe-button>
                        </template>
                    </vxe-toolbar>
                    <vxe-grid
                            class="vxe-table-antd"
                            resizable
                            show-overflow
                            ref="xGrid4"
                            stripe
                            border
                            highlight-hover-row
                            highlight-current-row
                            highlight-hover-column
                            highlight-current-column
                            highlight-cell
                            height="400"
                            :columns="tableColumn4"
                            :data="tableData4"
                            :edit-config="{trigger: 'click', mode: 'cell'}">

                    </vxe-grid>
                </a-tab-pane>
                <a-tab-pane key="5" tab="荣誉称号">
                    <vxe-toolbar>
                        <template v-slot:buttons>
                            <vxe-button @click="insertEvent5">新增</vxe-button>
                            <vxe-button @click="$refs.xGrid5.removeCheckboxRow()">删除</vxe-button>
                        </template>
                    </vxe-toolbar>
                    <vxe-grid
                            class="vxe-table-antd"
                            resizable
                            show-overflow
                            ref="xGrid5"
                            stripe
                            border
                            highlight-hover-row
                            highlight-current-row
                            highlight-hover-column
                            highlight-current-column
                            highlight-cell
                            height="400"
                            :columns="tableColumn5"
                            :data="tableData5"
                            :edit-config="{trigger: 'click', mode: 'cell'}">

                    </vxe-grid>
                </a-tab-pane>
            </a-tabs>
        </a-form-model>
    </div>
</template>

<script>
    import {queryTalent} from "@/services/system/abs"
    import {getBatchDict} from "@/services/system/api"
    export default {
        name: "TalentQueryForm",
        data(){
            return{
                dictData: {},
                tableData3:[],
                tableData4:[],
                tableData5:[],
                auditLabelCol: {
                    xs: {span: 24},
                    sm: {span: 7}
                },
                auditWrapperCol: {
                    xs: {span: 24},
                    sm: {span: 17}
                },
                newFormData: {
                    /*
                    fullName: '',
                    cardType: '',
                    idcard: '',
                    sex: '',
                    birthday: null,
                    email: '',
                    cellphone: '',
                    country: '',
                    educationType: '',
                    major: '',
                    localLevel: '',

                    addressStreetValue:'',
                    addressVillageValue:'',
                    addressDetail:'',
                    areaCode:'',
                    cardDateStart:'',
                    cardDateEnd:'',
                    expertise:'',
                    faith:'',
                    healthType:'',
                    householdDetail:'',
                    marriageStatus:'',
                    nation:'',
                    nativePlace:'',
                    politicalInfo:'',
                    personStatus:'',
                    personType:'',
                    phone:'',
                    residenceType:'',
                    workedTime:'',

                    talentType:'',
                    talentLevel:'',
                    orgName:'',
                    localType:'',
                    jobPost:'',
                    subject:'',
                    researchField:'',
                    talentCategory:'',
                    talentRank:''
                    */
                },
                personDetailQueryVO:{
                    busNo:null,
                    cardType:'',
                    idcard:'',
                    personId:null
                },
                tableColumn3:[
                    { field:'checkBtn',type: 'checkbox', width: 60, fixed: 'left', align: 'center', title: '选择' },
                    { type:'seq',width:'80',align:'center',title: '序号'},
                    { field: 'degreeDate',width:'100',align:'center', title: '最高学位授予时间', editRender: { name: 'AInput', props: { type: 'date'} } },
                    { field: 'degreeType',width:'100',align:'center', title: '学位', editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'}} },
                    { field: 'degreeOrg',width:'100',align:'center', title: '最高学位授予单位', editRender: { name: 'input' } },
                    { field: 'educationCode',width:'100',align:'center', title: '学历证书编号', editRender: { name: 'input' } },
                    { field: 'educationType',width:'100',align:'center', title: '学历', editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'}} },
                    { field: 'endDate',width:'100',align:'center', title: '毕业日期', editRender: { name: 'AInput', props: { type: 'date'} } },
                    { field: 'goodHonoursFlag',width:'100',align:'center', title: '是否优秀毕业生', editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'}} },
                    { field: 'leaningType',width:'100',align:'center', title: '学习形式', editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'}} },
                    { field: 'major',width:'100',align:'center', title: '专业名称', editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'},props:{showSearch:true,optionFilterProp:'children'}} },
                    { field: 'overseasFlag',width:'100',align:'center', title: '是否海外经历', editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'}} },
                    { field: 'reeducationInfo',width:'100',align:'center', title: '继续教育（培训）情况', editRender: { name: 'input' } },
                    { field: 'school',width:'100',align:'center', title: '毕业学校', editRender: { name: 'input' } },
                    { field: 'schoolingLength',width:'100',align:'center', title: '学制', editRender: { name: 'input' } },
                    { field: 'startDate',width:'100',align:'center', title: '入学日期', editRender: { name: 'AInput', props: { type: 'date'} } },
                ],
                tableColumn4:[
                    { type: 'checkbox', width: 60, fixed: 'left', align: 'center', title: '选择' },
                    { type:'seq',width:'80',align:'center',title: '序号'},
                    { field: 'adminPost',width:'100',align:'center', title: '行政职务', editRender: { name: 'input' } },
                    { field: 'applicationInfo',width:'100',align:'center', title: '申请诉求', editRender: { name: 'input' } },
                    { field: 'contractStartDate',width:'100',align:'center', title: '劳动合同(聘用合同)开始日期', editRender: { name: 'AInput', props: { type: 'date'} } },
                    { field: 'contractEndDate',width:'100',align:'center', title: '劳动合同(聘用合同)截止日期', editRender: { name: 'AInput', props: { type: 'date'} } },
                    { field: 'currentFlag',width:'100',align:'center', title: '是否当前工作', editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'}} },
                    { field: 'declareInfo',width:'100',align:'center', title: '申报信息', editRender: { name: 'input' } },
                    { field: 'department',width:'100',align:'center', title: '部门科室', editRender: { name: 'input' } },
                    { field: 'entryTime',width:'100',align:'center', title: '入职日期', editRender: { name: 'AInput', props: { type: 'date'} } },
                    { field: 'industry',width:'100',align:'center', title: '所属行业', editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'}} },
                    { field: 'jobPosition',width:'100',align:'center', title: '职位', editRender: { name: 'input' } },
                    { field: 'jobPost',width:'100',align:'center', title: '职务', editRender: { name: 'input' } },
                    { field: 'jobRank',width:'100',align:'center', title: '职级', editRender: { name: 'input' } },
                    { field: 'occupation',width:'100',align:'center', title: '职业、工种', editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'}} },
                    { field: 'orgAddress',width:'100',align:'center', title: '单位地址', editRender: { name: 'input' } },
                    { field: 'orgContact',width:'100',align:'center', title: '单位联系人', editRender: { name: 'input' } },
                    { field: 'orgName',width:'100',align:'center', title: '单位名称', editRender: { name: 'input' } },
                    { field: 'orgPhone',width:'100',align:'center', title: '单位联系人电话', editRender: { name: 'input' } },
                    { field: 'position',width:'100',align:'center', title: '从事岗位', editRender: { name: 'input' } },
                    { field: 'proveName',width:'100',align:'center', title: '资格证明材料名称', editRender: { name: 'input' } },
                    { field: 'qualificationPost',width:'100',align:'center', title: '专业技术职务', editRender: { name: 'input' } },
                    { field: 'quitTime',width:'100',align:'center', title: '离职时间', editRender: { name: 'AInput', props: { type: 'date'} } },
                    { field: 'resume',width:'100',align:'center', title: '简历内容', editRender: { name: 'input' } },
                    { field: 'socialFlag',width:'100',align:'center', title: '是否缴纳社会保险', editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'}} },
                    { field: 'superiorsName',width:'100',align:'center', title: '直接上级姓名', editRender: { name: 'input' } },
                    { field: 'unitType',width:'100',align:'center', title: '单位类型', editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'}} },
                    { field: 'wordDes',width:'100',align:'center', title: '工作描述', editRender: { name: 'input' } },
                    { field: 'workConditions',width:'100',align:'center', title: '工作业务情况', editRender: { name: 'input' } },
                    { field: 'workExperience',width:'100',align:'center', title: '工作经历', editRender: { name: 'input' } },
                    { field: 'workFunction',width:'100',align:'center', title: '职能', editRender: { name: 'input' } },
                    { field: 'workMajor',width:'100',align:'center', title: '现从事专业', editRender: { name: 'input' } },
                    { field: 'workStatus',width:'100',align:'center', title: '状态', editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'}} },
                    { field: 'workType',width:'100',align:'center', title: '工作类型', editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'}} },
                ],
                tableColumn5:[
                    { type: 'checkbox', width: 60, fixed: 'left', align: 'center', title: '选择' },
                    { type:'seq',width:'80',align:'center',title: '序号'},
                    { field: 'grantTime',width:'100',align:'center', title: '授予时间', editRender: { name: 'AInput', props: { type: 'date'} } },
                    { field: 'grantUnit',width:'100',align:'center', title: '授予单位', editRender: { name: 'input' } },
                    { field: 'titleCode',width:'100',align:'center', title: '称号或头衔名称', editRender:{name: 'ASelect',options:[],optionProps:{value:'dictKey',label:'dictValue'},props:{showSearch:true,optionFilterProp:'children'}} },
                    { field: 'titleLevel',width:'100',align:'center', title: '称号级别', editRender: { name: 'input' } },
                ],
                aa:[
                    {'dictKey':'1','dictValue':'是'},
                    {'dictKey':'0','dictValue':'否'}
                ],
            }
        },
        props: {
            personId: {
                type: Number,
                default: () => {},
                required: false
            }
        },
        created() {
            // 数据初始化
            // 数据字典初始化
            const params = {}
            params.dictFields = 'areaCode,cardType,degreeType,' +
                'educationType,sex,country,major,leaningType,' +
                'faith,healthType,marriageStatus,nation,politicalInfo,personStatus,personType,' +
                'residenceType,talentType,talentLevel,localType,localLevel,subject,talentRank,' +
                'industry,occupation,unitType,workStatus,workType,userTitle'
            this.$http.post(getBatchDict, params).then(res => {
                this.dictData = res.result

                this.tableColumn3[3].editRender.options=this.dictData.degreeType
                this.tableColumn3[6].editRender.options=this.dictData.educationType
                this.tableColumn3[9].editRender.options=this.dictData.leaningType
                this.tableColumn3[10].editRender.options=this.dictData.major
                this.tableColumn3[8].editRender.options=this.aa
                this.tableColumn3[11].editRender.options=this.aa

                this.tableColumn4[6].editRender.options=this.aa
                this.tableColumn4[24].editRender.options=this.aa
                this.tableColumn4[10].editRender.options=this.dictData.industry
                this.tableColumn4[14].editRender.options=this.dictData.occupation
                this.tableColumn4[26].editRender.options=this.dictData.unitType
                this.tableColumn4[32].editRender.options=this.dictData.workStatus
                this.tableColumn4[33].editRender.options=this.dictData.workType

                this.tableColumn5[4].editRender.options=this.dictData.userTitle
            }).catch().finally(()=>{
                this.personDetailQueryVO.personId=this.personId
                if(this.personId){
                    this.queryDetail()
                }
            });
        },
        methods: {
            queryDetail() {
                this.$http.post(queryTalent, this.personDetailQueryVO).then((res) => {
                    const data = res.result
                    this.newFormData = data
                    this.tableData3=data.educationList
                    this.tableData4=data.workList
                    this.tableData5=data.userTitleList

                }).catch(() => {

                })

            },
            insertEvent3(){
                const $grid = this.$refs.xGrid3
                $grid.insert({

                })
            },
            insertEvent4(){
                const $grid = this.$refs.xGrid4
                $grid.insert({

                })
            },
            insertEvent5(){
                const $grid = this.$refs.xGrid5
                $grid.insert({

                })
            },
            /*
            deleteEvent3 () {
                this.$XModal.confirm('确定要删除选中的数据?').then(type => {
                    if (type === 'confirm') {
                        let data = [...this.tableData3]
                        data.forEach((item) => {
                            if (item.checkBtn === true) {
                                this.$refs.xGrid3.remove()
                            }
                        })
                        $table.remove(row)
                    }
                })
            },
            */
        }
    }
</script>

<style scoped>

</style>